import re
import ast
import os
from setuptools import setup

with open('pypkg/__init__.py') as f:
    ver = re.search('__version__\s*=\s*(.*)', f.read().decode('utf8')).group(1)
    version = str(ast.literal_eval(ver))

setup(
    name='pypkg',
    version=version,
    packages=['pypkg',],
    entry_points={
        'console_scripts': [
            'pypkg = pypkg.main:run',
        ],
    },
    install_requires=['jinja2', 'click'],
    include_package_data=True
)